/* 生产批次增删改查 */
import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => {
    return baseRequest(url, ...arg)
}
export default {
    // 增
    addProductBatch(data) {
        return request('/AddProductBatch', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 删
    deleteProductBatch(data) {
        return request('/DeleteProductBatch', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 改
    modifyProductBatch(data) {
        return request('/ModifyProductBatch', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查
    getProductBatchs(data) {
        return request('/GetProductBatchs', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查生产批次型号
    getProductBatchModels(data) {
        return request('/GetProductBatchModels', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 增生产批次型号
    addProductBatchModel(data) {
        return request('/AddProductBatchModel', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 改生产批次型号
    modifyProductBatchModel(data) {
        return request('/ModifyProductBatchModel', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查生产批次型号
    deleteProductBatchModel(data) {
        return request('/DeleteProductBatchModel', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
}